/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.gastronomico.demo.service.impl;

import com.gastronomico.demo.domain.Ubigeo;
import com.gastronomico.demo.repository.UbigeoRepository;
import com.gastronomico.demo.service.UbigeoService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author MIGUELANGEL
 */

@Service
public class UbigeoServiceImpl implements UbigeoService{

    @Autowired
    UbigeoRepository repositority;

    @Override
    public List<Ubigeo> obtenerDepartamentos() {
        return repositority.obtenerDepartamentos();
    }

    @Override
    public List<Ubigeo> obtenerDistritos(String depv, String prov) {
        return repositority.obtenerDistritos(depv, prov);
    }

    @Override
    public Ubigeo obtenerDepartamento(String dept) {
        return repositority.obtenerDepartamento(dept);
    }

    @Override
    public List<Ubigeo> obtenerProvincias(String depv) {
        return repositority.obtenerProvincias(depv);
    }

    @Override
    public Ubigeo obtenerUbigeo(String id) {
        return repositority.obtenerUbigeo(id);
    }

    @Override
    public Ubigeo obtenerDistrito(String prov, String dept, String dist) {
        return repositority.obtenerDistrito(prov, dept, dist);
    }

    @Override
    public Ubigeo obtenerProvincia(String prov, String dept) {
        return repositority.obtenerProvincia(prov, dept);
    }

}
